#pragma once
#include "afxwin.h"
#include "psapi.h"
#pragma  comment(lib, "psapi.lib")

// CProcessDlg dialog

class CProcessDlg : public CDialog
{
	DECLARE_DYNAMIC(CProcessDlg)
private:
	CList<CString> lstProcess;

public:
	CProcessDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CProcessDlg();

// Dialog Data
	enum { IDD = IDD_PROCESS };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	CListBox m_lstProcessName;
	afx_msg void OnBnClickedOk();
	afx_msg void OnBnClickedCancel();

	void FillListBox(CList<CString>& lstProcess);
	afx_msg void OnBnClickedButton1();
	afx_msg void OnTimer(UINT_PTR nIDEvent);

};
